/* flex */
.flx-default {
  display: flex;
  align-items: center;
}
.flx-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.flx-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flx-justify-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flx-row-reverse {
  display: flex;
  flex-direction: row-reverse;
}
.flx-align-center {
  display: flex;
  align-items: center;
}
.flx-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.flx-column-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flx-align-end {
  display: flex;
  align-items: flex-end;
}
.flx-shink0 {
  flex-shrink: 0;
}
.flex1 {
  scrollbar-width:none;
  flex: 1;
  overflow: auto;
}

/* clearfix */
.clearfix::after {
  clear: both;
  display: block;
  height: 0;
  overflow: hidden;
  content: "";
}

/* 文字单行省略号 */
.sle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文字多行省略号 */
.mle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 文字多了自动換行 */
.break-word {
  word-break: break-all;
  word-wrap: break-word;
}

/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all 0.2s;
}
.fade-transform-enter-from {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.2s;
}
.fade-transform-leave-to {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.2s;
}

/* breadcrumb-transform */
.breadcrumb-enter-active {
  transition: all 0.2s;
}
.breadcrumb-enter-from,
.breadcrumb-leave-active {
  opacity: 0;
  transform: translateX(10px);
}

/* scroll bar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--el-border-color-darker);
  border-radius: 20px;
}

/* nprogress */
#nprogress .bar {
  background: var(--el-color-primary) !important;
}
#nprogress .spinner-icon {
  border-top-color: var(--el-color-primary) !important;
  border-left-color: var(--el-color-primary) !important;
}
#nprogress .peg {
  box-shadow: 0 0 10px var(--el-color-primary), 0 0 5px var(--el-color-primary) !important;
}

/* 外边距、内边距、宽度全局样式 */
@for $i from 0 through 1000 {
  .mt#{$i} {
    margin-top: #{$i}px !important;
  }
  .mr#{$i} {
    margin-right: #{$i}px !important;
  }
  .mb#{$i} {
    margin-bottom: #{$i}px !important;
  }
  .ml#{$i} {
    margin-left: #{$i}px !important;
  }
  .pt#{$i} {
    padding-top: #{$i}px !important;
  }
  .pr#{$i} {
    padding-right: #{$i}px !important;
  }
  .pb#{$i} {
    padding-bottom: #{$i}px !important;
  }
  .pl#{$i} {
    padding-left: #{$i}px !important;
  }
  .padding#{$i} {
    padding: #{$i}px !important;
  }
  .w#{$i} {
    width: 1% * $i !important;
  }
  .width#{$i} {
    width: #{$i}px !important;
  }
  .h#{$i} {
    height: 1% * $i !important;
  }
  .height#{$i} {
    height: #{$i}px !important;
  }
  .fsize#{$i} {
    font-size: #{$i}px !important;
  }
}
.text-align-center {
  text-align: center;
}

// 颜色
// $main-color: #1890ff;
// $success-color: #52c41a;
// $error-color: #f5222d;
// $color-font: #333333;
// $main-color-light: #ecf5ff;
// $assist-color: #666666;
// $desc-color: #999999;
// $invalid-color: #CCCCCC;
// $color-font: #333333;
// $main-color-light: #ecf5ff;
// $border-color: #f1f1f1;
.text-invalid-color {
  color: #a8abb2;
}
.text-describe-color {
  color: rgb(153 153 153);
}
.text-assist-color {
  color: #666666;
}
.bg-invalid {
  background-color: #a8abb2;
}
.pointer {
  cursor: pointer;
}
.font-weight {
  font-weight: bold;
}
.width100 {
  width: 100%  !important;
}